#!/usr/bin/env python


import sys
from config import *
from interface import *
from languages import *

class Main:
	def __init__(self):
        	pass

	#check if it is already configured, if not, responds with an error.
	def run(self):
#		obje = Config()
#		print obje.check_config()
		print 'duuuuuh'
	        pass


	def config(self):
	        pass

	
	# Check if argv is correct.
	def check_argv(self):
		if sys.argv[1] == 'config':
			if len(sys.argv) > 2:
				if sys.argv[2] == '-s':
					print 'server'
					obje = Config()
					obje.config_server()
				if sys.argv[2] == '-c':
					print 'client'
			else:
				print '\n',lang_error_argv1,'\n'
			pass
		elif sys.argv[1] == 'run':
			self.run()
		else: print '\n',lang_error_argv,'\n'


if __name__ == "__main__":
	main = Main()
	if len(sys.argv) > 1:
	        main.check_argv()

	obje = Config()

	#    print obje.check_language()
    
